{% extends 'index.html' %}

{% block content %}
<div class="container">
    {% include 'bit/notifications.html' %}
    <div class="row">
        <div class="col-lg-12">
            <p class="text-muted"><i class="icon" data-label="calendar-alt"></i>&nbsp;<span class="date" data-label="from-now">{{ main_post.Created }}</span></p>
            {% if content %}
                {{ content | typograph | safe }}
            {% else %}
                {{ main_post.ShortText | typograph | safe  }}
            {% endif %}
            <div class="card">
                <div class="card-body d-flex justify-content-between align-items-center">
                    <div>
                    <i class="icon" data-label="calendar-alt"></i> <span class="date" data-label="LL">{{ main_post.Created }}</span>&nbsp;
                    {% if main_post.Tags %}
                        {% for tag in main_post.Tags %}
                           <a href="{{ path_for(id='blog') | safe}}#tag={{ tag }}" class="btn btn-outline-secondary btn-sm">{{ tag }}</a>
                        {% endfor %}
                    {% endif %}
                    </div>
                    <div id="social" property="{{ title }}"></div>
                </div>
            </div>
        </div>
    </div>
</div>
{% endblock %}

